package com.pep.mgmt.service;

import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class ShellCmdService {

    private final ShellCommandExecutor shellCommandExecutor;
 
    public ShellCmdService(ShellCommandExecutor shellCommandExecutor) {
        this.shellCommandExecutor = shellCommandExecutor;
    }
 
    public String someMethod(String command) {
        return shellCommandExecutor.executeCommand(command);
    }
}